package top.infopub.mgr.bpa.dao;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import top.infopub.generic.GenericDao;
import top.infopub.mgr.bpa.domain.SubpackCotDetailAndSubDomain;
import top.infopub.model.bpa.SubpackCotDetail;

/** 分包合同清单分解子项费用明细(BPA_SUBPACK_COT_DETAIL) **/
public interface SubpackCotDetailDao extends GenericDao<SubpackCotDetail, String> {

    /**
     * 批量添加分包合同清单分解子项费用明细
     */
    void insertByBatch(@Param("list")List<SubpackCotDetail> subpackCotDetails);
    
    /**
     *  根据分包合同ID查询所有分包合同清单分解子项信息
     */
    List<SubpackCotDetailAndSubDomain> selectBySubpackCotId(@Param("subpackCotId")String subpackCotId);
    
    /**
     * 查询项目【分包合同】 子项对应{对内下浮率}，不存在则返回null
     * @param where proCode subName
     * @return 
     * @see
     */
    BigDecimal selectRateFromSubpackCot(Map<String, Object> where);
    
}